<?php
class OnlineQuestionController {
	public function lists (){
		$onlineQuestion = HttpServerManager::getOnlineQuestionServer();
		$data = $onlineQuestion->pagingBySearch($_GET);
		return $data;
	}
	public function delete(){
		HttpServerManager::getOnlineQuestionServer()->deleteBatchByid($_GET['id']);
		ClassManager::getToos()->msgbox("删除成功");
	}
	public function answer(){
		$data = HttpDaoManager::getOnlineQuestionDao()->get($_GET['id']);
		return $data;
	}
	public function subAnswer(){
		HttpServerManager::getOnlineQuestionServer()->answer($_POST['answer'], $_POST['id']);
		$msg = Common::_t('data_edit_success');
		ClassManager::getToos()->msgbox($msg,'OnlineQuestion_lists.html');
	}
}
?>